package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qijian.maindata.domain.CustomerComplaints;
import com.qijian.maindata.domain.query.CustomerComplaintsQuery;
import com.qijian.maindata.domain.vo.CustomerComplaintsVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 客户投诉Mapper接口
 *
 * @author qijian
 * @date 2024-09-06
 */
public interface CustomerComplaintsMapper extends BaseMapper<CustomerComplaints> {

    @Select("select count(0) from main_customer_complaints WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();

    List<CustomerComplaintsVo> pageList(@Param("num") Long num, @Param("size") Long pageSize, @Param(Constants.WRAPPER) Wrapper<CustomerComplaintsQuery> query);
    int pageListCount( @Param(Constants.WRAPPER) Wrapper<CustomerComplaintsQuery> query);
    List<CustomerComplaintsVo> pageListInfo( @Param(Constants.WRAPPER) Wrapper<CustomerComplaintsQuery> query);

    CustomerComplaintsVo getByIdInfo(Long id);
}
